package com_djm_2025_05_28;

public class Test {

    public static void main(String[] args) {
        Animal animal = new Animal("老虎",6);

        animal.eat();

        animal = new Dog("汪汪",5);

        animal.eat();

        animal = new Cat("喵喵",8);

        animal.eat();
    }




}
